package com.xiaozhen.common.core.constant;

/**
 * 通用常量信息
 *
 * @author zhenweisheng
 */
public class Constants {
    /**
     * UTF-8 字符集
     */
    public static final String UTF8 = "UTF-8";

    /**
     * GBK 字符集
     */
    public static final String GBK = "GBK";

    /**
     * RMI 远程方法调用
     */
    public static final String LOOKUP_RMI = "rmi://";

    /**
     * http请求
     */
    public static final String HTTP = "http://";

    /**
     * https请求
     */
    public static final String HTTPS = "https://";

    /**
     * 成功标记
     */
    public static final Integer SUCCESS = 200;

    /**
     * 失败标记
     */
    public static final Integer FAIL = 500;

    /**
     * 登录成功
     */
    public static final String LOGIN_SUCCESS = "Success";

    /**
     * 注销
     */
    public static final String LOGOUT = "Logout";

    /**
     * 注册
     */
    public static final String REGISTER = "Register";

    /**
     * 登录失败
     */
    public static final String LOGIN_FAIL = "Error";

    /**
     * 当前记录起始索引
     */
    public static final String PAGE_NUM = "pageNum";

    /**
     * 每页显示记录数
     */
    public static final String PAGE_SIZE = "pageSize";

    /**
     * 排序列
     */
    public static final String ORDER_BY_COLUMN = "orderByColumn";

    /**
     * 开始时间
     */
    public static final String BEGIN_TIME = "beginTime";
    /**
     * 结束时间
     */
    public static final String END_TIME = "endTime";

    /**
     * 创建时间
     */
    public static final String CREATE_TIME = "create_time";

    /**
     * 更新时间
     */
    public static final String UPDATE_TIME = "update_time";

    /**
     * 正常状态
     */
    public static final String NORMAL_STATUS = "0";

    /**
     * 数据类型
     */
    public static final class ValueType {
        public static final String BYTE = "byte";
        public static final String SHORT = "short";
        public static final String INT = "int";
        public static final String LONG = "long";
        public static final String FLOAT = "float";
        public static final String DOUBLE = "double";
        public static final String BOOLEAN = "boolean";
        public static final String STRING = "string";
        public static final String ENUM = "enum";
    }

    /**
     * 字节数组要转换的数据类型
     */
    public static final class DataType {
        public static final String BYTES = "bytes";
        public static final String BYTE = "byte";
        public static final String SHORT = "short";
        public static final String INT = "int";
        public static final String LONG = "long";
        //十六进制字符串
        public static final String HEX = "hex";
        //带0x的十六进制字符串
        public static final String FULL_HEX = "fullhex";
        //二进制
        public static final String BIT = "bit";
        //gbk
        public static final String GBK = "gbk";
        //经纬度
        public static final String LON_OR_LAT = "lonorlat";
    }
}
